<template>
	<div class="demo form-bg">
		<div class="container">
			<div class="row" style="margin-bottom: 50px;">
				<div class="col-md-offset-3 col-md-6">
					<div class="col-xs-12 col-sm-5 col-md-5"> <img :src="loginLogoURL" style="display: block; text-align: center"  /> </div>
					<div class="col-xs-12 col-sm-7 col-md-7"> <b style="color: #2C2924; font-size: 40px; line-height: 60px;text-align: center">文档管理Portal</b> </div>
				</div>
			</div>
			<div class="row" style="margin-bottom: 20px; font-size: 20px; text-align: center">
				<div class="col-md-offset-3 col-md-6">
					<p>
						<b>愿景：成为医疗信息化行业的领导者引领行业变革<br>提升中国的医疗信息化水平</b>
					</p>
				</div>
			</div>
			<div class="row">
				<div class="col-md-offset-3 col-md-6 ">
					<form ref="login" class="form-horizontal box" >
						<span class="heading">用户登录</span>
						<div class="form-group">
							<input
								class="form-control" name="inputEmail3" id="inputEmail3"
								type="text"
								maxlength="32"
								placeholder="请输入用户名"
								v-model="loginForm.username"
							/>
							<i class="fa fa-user"></i>
						</div>
						<div class="form-group help">
							<input
								class="form-control" name="inputPassword3"
								maxlength="32"
								placeholder="请输入密码"
								v-model="loginForm.password"
							/>
							<i class="fa fa-lock"></i>
						</div>
						<div class="form-group">
							<a
								type="submit"
								class="btn btn-default"
								ref="loginSubmitButton"
								@click="login"
							>
								立刻登录
							</a>

						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
import { mapMutations } from 'vuex';
export default {
	name: 'CommonLoginComponent',
	data() {
		return {
			loginLogoURL: require('../../plugin/img/logo-orange.png'),
			loginForm: {
				username: '',
				password: ''
			},
			userToken: '',
			isShowPwd: false,
		};
	},
	methods: {
		created(){
			let data = {"path":"svn/01_RD_Core2_0/01工作库"};
			this.$axios.post("/svn/browser-out", data)
				.then(res=>{
					console.log(res)
				})
				.catch(err=>{
					console.log(err)
				})
		},
		login(){
			this.$router.push({path: "/"});
		},
	},
};
</script>
